<?php 
class DomArTestClass_ValidatorBasic extends DomArObject {

	
	/**
	* @orm text
	*/
	public $name;
	/**
	* @orm int(1)
	* @orm validator in({3,4,5})
	*/
	public $value = 3;
	
	/**
	* @orm int(1)
	* @orm validator <>(5)
	*/
	public $ne = 4;
	
	/**
	* @orm int(1)
	* @orm validator >(5)
	*/
	public $gt = 6;
	
	/**
	* @orm int(1)
	* @orm validator <(5)
	*/
	public $lt = 4;
	
	/**
	* @orm int(1)
	* @orm validator >=(5)
	*/
	public $ge = 5;
	
	/**
	* @orm int(1)
	* @orm validator <=(5)
	*/
	public $le = 5;
	
	/**
	* @orm text
	* @orm validator email
	*/
	public $email;
	
	/**
	* @orm int(11)
	* @orm validator method myMethod(10,{20,30})
	*/
	public $user;
	
	/**
	* @orm int(1)
	* @orm validator <=(5)
	* @orm validator >=(3)
	*/
	public $more = 5;
	

	public function construct( $name ) {
		$this->name = $name;
	}
	
	public function myMethod( $value, $ten, $array ) {
		if( $value == 5 && $ten == 10 && $array == array(20,30)) {
			return 0;
		}
		return 1;
	}

}
?>